<img src='partials/TestDataPie_SimplePie.PNG' style='width:400px;float:right'>
<div>
<pre>
<span class='code_snippet' style='font-size: 11px'>

ArrayList&lt;Segment&gt; values = new ArrayList&lt;Segment&gt;();
values.add(new Segment(35, "something", Color.RED));
values.add(new Segment(32, "something else", Color.BLUE));
values.add(new Segment(5, "something or other", Color.BLUE.brighter()));
values.add(new Segment(3, "this", Color.BLUE.darker()));
values.add(new Segment(7, "that", Color.ORANGE));
values.add(new Segment(5, "and", Color.CYAN));
values.add(new Segment(13, "the other", Color.GREEN));

PieChart chart = new PieChart(values, "Simple Pie");

chart.setSize(800, 700);

</span></pre></div>